From ed2a38e0056488669b68e607ed28416f5112c178 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 18 Mar 2008 15:26:35 +0000 Subject: [PATCH] svm: Reported SS.DPL must equal CPL, as this is assumed by generic HVM code despite the fact that AMD processors do not always maintain this invariant. Based on a bug report and proposed patch by Ben Guthro and Robert Phillips of Virtual Iron. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/svm/svm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 6afe841d44..225c9893c9 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -495,6 +495,7 @@ static void svm_get_segment_register(struct vcpu *v, enum x86_segment seg, break; case x86_seg_ss: memcpy(reg, &vmcb->ss, sizeof(*reg)); + reg->attr.fields.dpl = vmcb->cpl; break; case x86_seg_tr: svm_sync_vmcb(v); -- 2.30.2